package Cantella::DJabberd::Web::UI::ViewPort::MenuItem;

use Reaction::Class;
use Reaction::Types::Core ();
extends 'Reaction::UI::ViewPort';

has name  => (is => 'ro', isa => 'Str');
has label => (is => 'ro', isa => 'Str', lazy_build => 1);
has uri   => (is => 'ro', ); #isa => Reaction::Types::Core::URI, coerce => 1);

sub _build_label {
  join ' ', map{ ucfirst } split '_', shift->name;
}

__PACKAGE__->meta->make_immutable;

1;

__END__;
